<?php
$sMissiongroups = JobHandler::getMissiongroups($_SESSION['iJobID']);
?>
<div class="hidden" id="layer_job_missiongroups" style="visibility: visible;">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxhandle" colspan="2"><?php print msg('Taskgroups') ?></td>
	</tr>
	<tr>
		<td class="listtop" style="text-align: center; width: 1px;">
			<a href="javascript: showBox('job-missiongroupadd'); layerHide('layer_job_missiongroups');"><img src="images/<?php print $_SESSION['oUserVars']['images'] ?>/missiongroup-add.png" border="0"></a>
		</td>
		<td class="listtop"><?php print msg('Taskgroups') ?></td>
	</tr>
<?php
foreach ($sMissiongroups as $iThisID => $sThisGroup)
{
	?>
	<tr>
		<td class="listentity nowrap" style="text-align: center; width: 1px;">
			<a href="javascript: showBox('job-missiongroupdelete', 'iMissiongroupID=<?php print $iThisID ?>'); layerHide('layer_job_missiongroups');"><img src="images/<?php print $_SESSION['oUserVars']['images'] ?>/missiongroup-delete.png" border="0"></a>
			<a href="javascript: showBox('job-missiongroupchange', 'iMissiongroupID=<?php print $iThisID ?>'); layerHide('layer_job_missiongroups');"><img src="images/<?php print $_SESSION['oUserVars']['images'] ?>/missiongroup-change.png" border="0"></a>
		</td>
		<td class="listentity"><?php print $sThisGroup ?></td>
	</tr>
	<?php
}
?>
	<tr>
		<td class="boxbody center" colspan="2">
			<input type="button" value="<?php print msg('Close') ?>" onClick="layerHide('layer_job_missiongroups');">
		</td>
	</tr>
</table>
</div>
